﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace MidSoft
{
    public partial class Main : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                //if (Session["currentUserID"] != null && Session["currentUserID"].ToString()!="")
                //    BindUserInfo(ChinaSoft.Common.Input.SetInt(Session["currentUserID"]));
            }
        }

        private void BindUserInfo(int userId)
        {
            //ChinaSoft.BLL.Common.Bind bllBind = new ChinaSoft.BLL.Common.Bind();
            //DataSet ds=bllBind.GetDataSet("*", "V_UserList","UsersId="+userId);
            //if (ds != null && ds.Tables.Count > 0)
            //{
            //    DataRow dr = ds.Tables[0].Rows[0];
            //    lblDuty.Text = dr["UserName"].ToString();
            //    LiterRoleName.Text = dr["RoleName"].ToString().Trim();
            //    if (!string.IsNullOrEmpty(ChinaSoft.Common.Input.SetString(dr["UserImgFolder"])))
            //    {
            //        ImgHeader.ImageUrl = "/Uploads/" + dr["UserImgFolder"].ToString() + "/" + dr["UserImgPath"].ToString();
            //    }
            //}
            ImgHeader.ImageUrl = "/Uploads/default.jpg";
        }
    }
}